home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Workbench Add-On
/
Workbench Add-On - Volume 1.iso
/
Gfx
/
Edit
/
TSMorph
/
rexx
/
PixelMorph.TSM
< prev
next >
Wrap
Text File
|
1995-02-05
|
988b
|
40 lines
/* example Prescript script file for TSMorph */
/* This example is a simple Morph which Pixelates between two images */
/* $VER: PixelMorph_TSM 3.1 (5.2.95)
*/
parse arg Base
Frame = 0
TotalFrames = 1
Single = 2
Movement = 3
Red1 = 4
Green1 = 5
Blue1 = 6
Red2 = 7
Green2 = 8
Blue2 = 9
Produce = 10
RPlus = 11
GPlus = 12
BPlus = 13
RMinus = 14
GMinus = 15
BMinus = 16
DX = 17
DY = 18
Start = 19
call StoreValue(Base,DX,min(TRUNC(GetValue(Base,Frame)),TRUNC(GetValue(Base,TotalFrames)+1-GetValue(Base,Frame))));
call StoreValue(Base,DY,min(TRUNC(GetValue(Base,Frame)),TRUNC(GetValue(Base,TotalFrames)+1-GetValue(Base,Frame))));
exit
GetValue:Procedure
Parse arg XBase, XAdd
return C2D(IMPORT(D2C(STRIP(XBase) + (STRIP(Xadd) * 4),4),4))
StoreValue:Procedure
Parse arg XBase, XAdd, XVal
call EXPORT(D2C(STRIP(XBase) + (STRIP(Xadd) * 4),4),D2C(XVal,4),4)
return